<template>
  <div class="common-layout">
    <Header></Header>
    <div class="container">
      <div class="aside-warp">
        <Aside></Aside>
      </div>
      <div class='right-warp' :class="store.state.collapseClass">
        <Tag></Tag>
<!--        <router-view></router-view>-->
      </div>
    </div>
  </div>
</template>

<script>
  import Header from '../components/header/Header'
  import Aside from '../components/aside/Aside'
  import Tag from '../components/tag/Tag'
  import {useStore} from 'vuex'
  export default {
    name:'Index',
    components:{Header,Aside,Tag},
    setup(){
      const store=useStore()
      return{
        store
      }
    }
  }

</script>

<style scoped>
.common-layout{
  width: 100%;
  height: 100%;
  display: flex;
  flex-flow: column;
}
.container{
  width: 100%;
  min-height: 600px;
  flex-grow : 1;
  display: flex;
}
.aside-warp{
  min-height: 100%;
  width: 12%;
  min-width: 150px;
  background-color:#324057;
  /*position: relative;*/
  /*overflow: hidden;*/
}
.right-warp{
  width: 88%;
}
/*.home-warp-false{
  position: absolute;
  height: 100%;
  top: 72px;
  left: 200px;
  transition: left 0.3s ease-in-out;
  right: 0;
  padding-bottom: 30px;
}
.home-warp-true{
  left: 68px;
  position: absolute;
  height: 100%;
  top: 72px;
  transition: left 0.3s ease-in-out;
  right: 0;
  padding-bottom: 30px;
}*/
</style>

